<html>
	<head>
		<script type="text/javascript" src="http://127.0.0.1:8080/compileJS?">
		</script>
		<script type="text/javascript" src="strands.js"></script>
		<script type="text/javascript">
		function run() {
		alert(TITT);
		
function sleep(millis){var _f = _frm(arguments);var _cp=_f.scp;_s:while(1){switch(_cp){case 1:_cp=2;case 2:if((_f.v2=_f._new(
Future))===_S){break _s;}var future=_f.v2;_cp=3;case 3:if((_f.v3=_g(
future,"fulfill"))===_S){break _s;}_cp=4;case 4:if((_f.v4=setTimeout(_f.v3,millis))===_S){break _s;}_cp=5;case 5:if((_f.v5=
future.result())===_S){break _s;}return;case 0:future=_f[0];millis=_f[1];_cp=_f.cp;}}return _f.sus(future,millis,_cp,this)}



function go(){var _f = _frm(arguments);var _cp=_f.scp;_s:while(1){switch(_cp){case 1:_cp=2;case 2:if((_f.v2=
document.getElementById("txtr"))===_S){break _s;}_p(_f.v2,"innerHTML","1");_cp=3;case 3:if((_f.v3=
sleep(2000))===_S){break _s;}_cp=4;case 4:if((_f.v4=
document.getElementById("txtr"))===_S){break _s;}_p(_f.v4,"innerHTML","2");return;case 0:_cp=_f.cp;}}return _f.sus(_cp,this)}



function go2(){var _f = _frm(arguments);var _cp=_f.scp;_s:while(1){switch(_cp){case 1:_cp=2;case 2:if((_f.v2=
document.getElementById("txtr"))===_S){break _s;}_p(_f.v2,"innerHTML","3");return;case 0:_cp=_f.cp;}}return _f.sus(_cp,this)}



new Future(go2);

			
		}		
		</script>
	</head>
	<body onload="run();">
		<div id="txtr">foobar</div>
	</body>
</html>